<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="/WEB-INF/autobase-taglib.tld" prefix="autobase"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<fmt:setBundle basename="bundles.autobaseAdminBundle" />
<head>
<script type="text/javascript">

	function beforeSend() {
		$.blockUI({
			message : $('#beforeImage'),
			showOverlay : true,
			css : {
				top : '40%',
				left : ($(window).width() - 110) / 2 + 'px',
				width : 110 + 'px'
			}
		});
	}

	function editOrder(element) {
		
		
		var orderId = $(element).attr('id');
		jQuery.ajax({
			url : 'admin.do',
			type : 'GET',
			dataType: 'html',
			data : {
				action : 'editOrder',
				orderId : orderId
			},
			beforeSend : function() {
				beforeSend();
			},
			success : function(data) {
				$.blockUI({
					fadeIn: 1000, 
		            message : data,
					showOverlay : true,
					css : {
						top : '20%',
						left : ($(window).width() - 500) / 2 + 'px',
						width : 500 + 'px'
					}
				});
				$('#close').click($.unblockUI);
			},
			error : function() {
				alert('Cannot edit season...');
			}
		});
	}
</script>
</head>
<body>

<div id="beforeImage" style="display: none;">
	<img src="../layout/img/loading6.gif" alt="Loading data..." >
</div>
<autobase:orders orderId="${param.orderId }" />
</body>


